<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var jsonObject = {};
    // jsonObject = {key : value};
    // jsonObject = {key01 : value01, key02 : value02, key03 : value03};

    var jsonArray = [];
    jsonArray = [1];
    jsonArray = [1, 2, 3];

    // code 对应的是一个整数数值的状态码 (200正常 500 404 405 501 502 503...)
    // msg message的缩写(国际化)  给前端返回一些提示信息  登录成功  系统繁忙  查询失败...
    // list  通常返回的是一个json列表，通常是在查询列表的时候，出现的对应key和value值
    // user  单一对象查询时，我们会根据查询的内容进行对象返回，通常此名称与对象类型一致
    jsonObject = {"code":200,
        "msg":"登录成功",
        "list":"",
        "user":""
    };

    jsonObject = {
        "alipay_trade_query_response": {
            "code": "10000",
            "msg": "Success",
            "trade_no": "2013112011001004330000121536",
            "fund_bill_list": [
                {
                    "fund_channel": "ALIPAYACCOUNT",
                    "amount": 10,
                }
            ],
            "store_name": "证大五道口店",
            "buyer_user_id": "2088101117955611",
            "trade_settle_info": {
                "trade_settle_detail_list": [
                    {
                        "operation_type": "replenish",
                        "operation_serial_no": "2321232323232",
                    }
                ]
            },
            "hb_fq_pay_info": {
                "user_install_num": "3"
            },
            "enterprise_pay_info": {
                "invoice_amount": 80
            }
        },
        "sign": "ERITJKEIJKJHKKKKKKKHJEREEEEEEEEEEE"
    };

    console.log(jsonObject.sign);
    console.log(jsonObject.alipay_trade_query_response.code);
    console.log(jsonObject.alipay_trade_query_response.msg);
    console.log(jsonObject.alipay_trade_query_response.trade_no);
    console.log(jsonObject.alipay_trade_query_response.fund_bill_list[0].fund_channel);
    console.log(jsonObject.alipay_trade_query_response.store_name);
    console.log(jsonObject.alipay_trade_query_response.trade_settle_info.trade_settle_detail_list[0].operation_type);
    console.log(jsonObject.alipay_trade_query_response.hb_fq_pay_info.user_install_num);

    var jsonObject02 = {};
    jsonObject02.sign = "ERITJKEIJKJHKKKKKKKHJEREEEEEEEEEEE";    // 动态追加一个json属性进去

    jsonObject02.alipay_trade_query_response = {};
    jsonObject02.alipay_trade_query_response.code = "10000";
    jsonObject02.alipay_trade_query_response.msg = "Success";
    console.log(jsonObject02);

    var jsonObject03={};
    jsonObject03.student={};
    jsonObject03.student.name="zjz";
    jsonObject03.student.id="3120190971107";
    jsonObject03.student.subject="计算机-软件开发";
    jsonObject03.student.sex="男";

    console.log(jsonObject03);

    console

</script>
</html>